﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ERPStore.Models
{
	[DataContract]
	public class ProductShipping
	{
		public ProductShipping()
		{
			Strategy = FeeTransportStrategy.ByLevel;
			Level = 1;
		}
		/// <summary>
		/// Mode de calul des frais de transport
		/// </summary>
		/// <value>The fee transport strategy.</value>
		[DataMember]
		public FeeTransportStrategy Strategy { get; set; }

		/// <summary>
		/// Niveau de transportabilité du produit
		/// </summary>
		/// <value>The fee transport level.</value>
		[DataMember]
		public int Level { get; set; }

		/// <summary>
		/// Montant des frais de transport fixe
		/// </summary>
		/// <value>The fee tranport price.</value>
		[DataMember]
		public decimal FixedPrice { get; set; }
	}
}
